;;(load "cedet")
;; (require 'auto-complete)
;; (add-to-list 'ac-dictionary-directories "/zleinter/emax/auto-complete/dict/")
;; (require 'auto-complete-config)
;; (ac-config-default)
;; (require 'auto-complete-clang)
;; (setq ac-auto-start nil)
;; (setq ac-quick-help-delay 0.5)

;; (defun my-ac-config ()
;;   (setq-default ac-sources '(ac-source-abbrev ac-source-dictionary ac-source-words-in-same-mode-buffers))
;;   (add-hook 'emacs-lisp-mode-hook 'ac-emacs-lisp-mode-setup)
;;   ;; (add-hook 'c-mode-common-hook 'ac-cc-mode-setup)
;;   (add-hook 'ruby-mode-hook 'ac-ruby-mode-setup)
;;   (add-hook 'css-mode-hook 'ac-css-mode-setup)
;;   (add-hook 'auto-complete-mode-hook 'ac-common-setup)
;;   (global-auto-complete-mode t))
;; (defun my-ac-cc-mode-setup ()
;;   ;; (setq ac-sources (append '(ac-source-clang ac-source-yasnippet) ac-sources))
;;   (setq ac-sources (append '(ac-source-yasnippet) ac-sources))
;;   )
;; (add-hook 'c-mode-common-hook 'my-ac-cc-mode-setup)
;; (define-key ac-mode-map [(control tab)] 'ac-complete-clang)
;; (eval-when-compile
;;   (when (< emacs-major-version 24)
;;     (defvar cedet-plugin "cedet")))

                                        ;(require 'cedet "/usr/share/emacs/site-lisp/cedet/common/cedet")
                                        ;(when (boundp 'image-load-path)
                                        ;  (add-to-list 'image-load-path "/usr/share/emacs/etc/cedet/common/icons" t)
                                        ;    (add-to-list 'image-load-path "/usr/share/emacs/etc/cedet/cogre" t))
                                        ;    (setq srecode-map-load-path
                                        ;          (list "/usr/share/emacs/etc/cedet/srecode/templates"
                                        ;			    "/usr/share/emacs/etc/cedet/ede/templates"
                                        ;					    "/usr/share/emacs/etc/cedet/cogre/templates"
                                        ;							    (expand-file-name "~/.srecode")))
                                        ;
;; (setq mail-sources
;;       '((pop :server "pop.mail.yahoo.com.cn" 
;;              :user ".com.cn"             
;;              :port "110"
;;              :password ""
;;              :leave t)))
